package com.cskaoyan.service;

import com.cskaoyan.bean.bo.OrderCommentBO;
import com.cskaoyan.bean.bo.OrderListWxBO;
import com.cskaoyan.bean.bo.OrderSubmitWxBO;
import com.cskaoyan.bean.pojo.MarketOrderGoods;
import com.cskaoyan.bean.vo.OrderDetailWxVO;
import com.cskaoyan.bean.vo.OrderListWxVO;
import com.cskaoyan.bean.vo.OrderSubmitWxVO;

public interface OrderWxService {
    /*
     *微信订单付款
     *
     * @param orderSubmitBO
     * @return com.cskaoyan.bean.bo.OrderSubmitWxBO
     * @author chenxu
     * @since 2022/04/09 9:00
     */
    OrderSubmitWxVO submit(Integer userId, OrderSubmitWxBO orderSubmitBO);

    //微信预付款
    int prepay(Integer userId, Integer orderId);

    //查看订单的信息
    OrderListWxVO list(Integer userId, OrderListWxBO orderListWxBO);

    //查看订单详情
    OrderDetailWxVO detail(Integer orderId);

    //取消订单
    void cancel(Integer orderId);

    //确认收货
    void confirm(Integer orderId);

    //删除订单
    void delete(Integer orderId);

    //创建订单商品评价表
    MarketOrderGoods getGoods(Integer orderId, Integer goodsId);

    //订单评价
    void comment(OrderCommentBO orderCommentBO);

    //申请退款
    void refund(Integer userId, Integer orderId);
}
